﻿[[title="用户列表",pagesize="15",orderby="createTime asc ",condition=""]]
<script type="text/javascript" language="javascript">
    function window.onload() {
        wmsCommon.setListDivStyle("listDiv",1);
    }
    function changeWindowSize() {
        wmsCommon.setListDivStyle("listDiv",1);
    }
    function usRoleAutorization(userNo, userId) {
        var href = "Pages/userDeptRoleAtuthorizationMain.htm?" + "userNo=" + encodeURIComponent(userNo) + "&userName=" + encodeURIComponent(userId);
        wmsCommon.openWin(href,'800',"600");
    }
    function deleteUser() {
        try {
            wmsCommon.deleteRows('contenttb', 'userInfo', '', '');
            
        } catch (e) {
            alert("用户失败，请与管理员联系！");
        }
    }    
</script>
<div class="ContentArea">
<table cellspacing="0" cellpadding="0" class="TblSearchPanel">
    <tr>
        <td class="TblSearchPanel_01">
        </td>
        <td class="TblSearchPanel_02">
            <div class="DivSearchTitle" style="float: left;">
                查询条件</div>
            <img alt="点此隐藏或显示搜索区域" id="Image2" src="res/images/display.gif" class="ImgSearch"
                onclick="wmsCommon.searchContentCtr()" />
        </td>
        <td class="TblSearchPanel_03">
        </td>
    </tr>
    <tr>
        <td class="TblSearchPanel_04">
        </td>
        <td>
        <!-- search content start -->
            <table id="tblSearch" class="SearchTable">
                <tr>
                    <td style="text-align: left; width: 100%;">
                        <table style="width: auto;">
                            <tr>
                                <td class="tdright">
                                    <nobr>$userInfo.Columns.get_Item("userNo").DisplayName：</nobr>
                                </td>
                                <td class="tdleft">
                                    $userInfo.Columns.get_Item("userNo").RenderAsQuery()
                                </td>
                                <td class="tdright">
                                    <nobr>$userInfo.Columns.get_Item("userName").DisplayName：</nobr>
                                </td>
                                <td class="tdleft">
                                    $userInfo.Columns.get_Item("userName").RenderAsQuery()
                                </td>
                                <td class="tdright">
                                    <nobr>$userInfo.Columns.get_Item("displayName").DisplayName：</nobr>
                                </td>
                                <td class="tdleft">
                                    $userInfo.Columns.get_Item("displayName").RenderAsQuery()
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td style="vertical-align: bottom;">
                        <div style="width: 100%">
                            $render.RenderButton()
                        </div>
                    </td>
                </tr>
            </table>
            <!-- search content end-->
        </td>
        <td class="TblSearchPanel_06">
        </td>
    </tr>
    <tr>
        <td class="TblSearchPanel_07">
        </td>
        <td class="TblSearchPanel_08">
        </td>
        <td class="TblSearchPanel_09">
        </td>
    </tr>
</table>
<!--list content start-->
<!--button content start-->
  <table class="controlContent" cellpadding="0" cellspacing="0" >
        <tr class="rowEven">
            <td style="text-align:right;">
            $render.RenderButton(" text=新增; displayType=button; actionType=new; clientMethod=wmsCommon.openAddWin('userinfo','userInfo_1_edit','600','400','');")
            $render.RenderButton(" text=删除; displayType=button ; actionType=delete; clientMethod=deleteUser();")
            </td>
        </tr>
        </table>
<!--button content end-->
<div id="listDiv" class="listDivStyle">
<table id="contenttb" cellpadding="0" cellspacing="0" class="tblList">
    <tr class="FixedTitleRow">
        <th>
        <span style="cursor: hand" onclick="wmsCommon.checkedAll('contenttb')">选择</span>
        </th>
        <th style="width: 30px">
            $userInfo.Columns.get_Item("ROWNUM").Render()
        </th>     
        <th>
            $userInfo.Columns.get_Item("userName").Render()
        </th>
        <th>
            $userInfo.Columns.get_Item("displayName").Render()
        </th>

        <th>
            $userInfo.Columns.get_Item("MobilePhone").Render()
        </th>
        <th>
            $userInfo.Columns.get_Item("departName").Render()
        </th>   
         <th>
            $userInfo.Columns.get_Item("isDisabledValue").Render()
        </th>               
        <th style="width:170px;">
            操作
         </th>                        
    </tr>
    #foreach($row in $userInfo.Rows)
       <tr keyvalue="$row.RenderKeyValue()" onmouseout="wmsCommon.onMouseOut(this)" onmouseover="wmsCommon.onMouseOver(this)" style="width:100%;">
       <td>
       <input style="cursor: hand;border:0" type="checkbox" />
       </td>
        <td style="width: 30px">
            $row.get_Item("ROWNUM").Render()
        </td>     
        <td>
        <nobr>
            $row.get_Item("userName").Render()
            </nobr>
        </td>
        <td>
        <a href="#"  style="border:0"  onclick="wmsCommon.openLookWin('$row.RenderKeyValue()','userinfo','userinfo_view',600,400)">$row.get_Item("displayName").Render()</a>
        </td>
        <td>
            $row.get_Item("MobilePhone").Render()
        </td>
        <td>
            $row.get_Item("departName").Render()
        </td>    
         <td  style="text-align:center; width:80px;">
            $row.get_Item("isDisabledValue").Render()
        </td>   

        <td style="width:170px; text-align:right;" id='$row.get_Item("userNo").get_Value' name='$row.get_Item("displayName").get_Value'>
         <nobr>
           $render.RenderButton("text=修改; displayType=button; actionType=modify; clientMethod=wmsCommon.openModifyWin(this,'userInfo','userInfo_1_edit',600,400);")        
      $render.RenderButton("text=岗位授权; displayType=button; actionType=modify; clientMethod=wmsBiz.openUsRoleAutorization(this.parentNode); ") 
           $render.RenderButton("text=重置密码; displayType=button; actionType=recoverPassword; clientMethod=wmsCommon.recoveryPassword(this); ")     
           </nobr>
        </td>
    </tr>
    #end
</table>
</div>
$render.RenderPaging($userInfo)
</div>

<!-- list content end-->